import request from "../request";

/**
 * AI生成视频
 * @param params - 生成视频的参数
 * @returns Promise
 */
export function generateAIVideo(params: any) {
  return request({
    url: '/website/video/ai/generate',
    method: 'post',
    data: params
  });
}


export function getPercent(id) {
    return request({
      url: `website/video/ai/generateResult/${id}`,
      method: 'get',
    });
  }

  
// 上传阿里云
export function postToOss(file: any) {
  return request({
    url: "/website/oss",
    method: "post",
    data: file,
  });
};
